fix rows in database file