beginning to connect database and front end