Added get app info function and dbInterface code reduce and generalization