Bug fix on first load empty local db.