Commit function added to all tables