more WIP on db api
passing integration tests
reorg. renamed models dir to tokens
token.create should take a uid again
client works again with new db api