Improve db

#8 @gsathya @ben-jones 
I changed directory structure and split server.py into models and views.
`self.roles = map(Role.query.filter_by(name=role).first, roles)`
but what does this even do? filters are expensive. do we even need this?