added hook for database initialization