added onError callbacks when using Web SQL