I would say, look backwards.
A PhoneGap / Cordova app is basically a self-contained, packaged website. So if you create a website first then add in some mobile specific features if needed and package it into a mobile app with Cordova.
Database calls are not platform specific, depending on the service.