changed database initialization