You'll find the completed code for our blog with a database on the Course Resources List. Head over there and download the project, if you need to debug your code or see how I did it.
https://www.appbrewery.co/p/web-development-course-resources/