complete db manipulations for facebook

make possible for facebook to retrieve data from db. clean main activity
Merge pull request #13 from mrstrlc-yipeng/yipeng-v2

complete db manipulations for facebook