Set up the database.