Improve db

#8 @gsathya @ben-jones 
I changed directory structure and split server.py into models and views.
https://code.google.com/p/soc/wiki/PythonStyleGuide#Imports_grouping_and_order