Hook up the database.