more fixes for sqlite and access to finance tables
merge from lp:~tpokorra/openpetraorg/20141106_sqlite