phonegap localstorage & Database