setting up app and database