timedb: open up some new functionality + close fd leak in path:foldlines