refactor the database: modify table favorites and add table apps.
Merge pull request #6 from cooee-zen/suyu_issue2

refactor the database: modify table favorites and add table apps.