Improve db

#8 @gsathya @ben-jones 
I changed directory structure and split server.py into models and views.
where is this ip generated? we should generate only - "192.168.1.1/24" not do any pre processing