Fix database setup.