bugfix: transaction rollback in SQLStore

Do not rely upon a contextmanager to implicitly rollback
transactions in response to failed queries. Handle explicitly with
try/except/else.