included DB sample code from PhoneGap.