refactor routing
refactor database queries
Merge pull request #91 from atungare/dev

refactor working write to db of fb data