To take a different interpretation of your question than @David did: It would be a good idea to standardize on REST as your data access API. That will give your app database independence to the extent that any particular database's paradigm matches your app's needs. Most modern databases support REST and there are third party and open source REST frameworks for several of the ones that do not.