* fixed trying to pull empty entity list from database.