converted legacy code to liquid/3.x database interface
Merge branch 'liquid/3.x' of git://github.com/ibidem/mjolnir-accounting into liquid/3.x