Improve db

#8 @gsathya @ben-jones 
I changed directory structure and split server.py into models and views.
all of this should come inside a `if __name__ == "__main__":` block