table footer and insert query updated