Improve db

@gsathya @ben-jones 
I changed directory structure and split server.py into models and views.