fix record of database