Initialize database.