Refactor: moved calls to waterline-sequel-orientdb from connection.js to query.js