Configured app to work with database