Completely refactored database interactions (#19)
fixed bugs with db refactor and facebook token exchange
Merge branch 'backend'