Fix wrong usage of Callback in SQLStore.
Add test for onSuccess callback and fix SQLStore opening method.