fix tz handling
move some code around, why not
db: Implement limit