[DB/Errors] Fix a few DB errors.