Implementation of Backbone.sync method which stores data to WebSQL.