Added AppTime DB stuff, tracks time in DB.
Another commit for forgotten files