added an error callback when creating WebSQL and IndexedDB databases