Extract ORM specifics

rework of PR #454

a good case <https://github.com/advancedcontrol/doorkeeper-couchbase>
We need to undo the spec changes, to be testing wih every ORM.