modification of database initialization api