The previous PostgreSQL support caused 'commit' to be
called from a different connection than the connection
used to run the insert/update/delete sql when saving
changes to the store.
This caused the updates to not be commited.
This patch allows an optional connection arguement to
the commitInserts, commitDeletes, and commitUpdates
I've tested it with PostgreSQL, but not with MySQL as I
do not have that installed.