hook up the database