getting the DB functioning