rework WebSQL database migration to fix IOS 6.1 problem