update authenticator
Refactoring, lots of it
add limit, offset, order_by
refactor db/base.py
add first, count, all to Query objects