Improve db

#8 @gsathya @ben-jones 
I changed directory structure and split server.py into models and views.
i'm not sure if there's a better pattern, sgtm. @Ethcelon do you have thoughts here?