initDatabase promise