Improve db

#8 @gsathya @ben-jones 
I changed directory structure and split server.py into models and views.
this needs to be changed based on the kwargs change in the init