merging
Refactor DBModel to rely upon node-sql
Add #first and #last methods to DBModel