Log for your tables in postgreSQL. Add trigger to Insert, update and delete every row in each table. And insert it in the audit table