Implementation of Backbone.sync method to store data to WebSQL.