updates to fix some database inconsistencies