hooking up the database