add more fixes for the new release

fixes for accounts payable and sqlite.
fixes for serialization between server and client