Initialize database