If I understood correctly, you want to use your current logic to handle access to the database to connect to the remote sqlite database.
I think such a use case is not possible. Cordoba uses support for WebSQL embedded in iOS and Android (or provides its own compatible implementation).
There are at least 2 solutions to your problem:
, , , . , , .
Cordova, sqlite, WebSQL. , iOS WebSQL, sqlite .