Revert "Revert "adding phone gap db""

This reverts commit 5cc0c6aa9efa75e2962ce2161d76607baac4c90c.
this is a fucking mess