first prototype for connecting the app the to database