Messing with the cordova ready fix

We'll be calling corodva ready each time we going to use a PG function.