Fixed some inconsistencies on database records