Added a database to the application. Not working correctly yet.