Database initialization on startup