when inserting a row to a table, it now inserts at the top