Problems in database about empty query results is corrected.