Fixed several issues to get the app working. Also added database file.