added initDatabase