Hook up the database