fixed check for dbEntry