complete db manipulations for facebook

make possible for facebook to retrieve data from db. clean main activity