Sqlstore fix

This fixes a bug in SQLStore's ability to load and save lists of certain types as well as a bad usage of transactions.