Improve db

#8 @gsathya @ben-jones 
I changed directory structure and split server.py into models and views.
ok i leave it to you if you think this is something we need. :+1: