fixed some database data inconsistencies