refactored code with filter auth, changed routes for twitter auth, data ...

...adding to database