use a new cursor for all selects
formatting
Add types

* Add basic types to middle.db.types
* Add Session model
* Update tests
allow for testing Models with every db