fix fields on database