tosulliv: initial refactoring of android DB handling