database is finished