Improve db

#8 @gsathya @ben-jones 
I changed directory structure and split server.py into models and views.
This is meant to account for ip addresses that may add a space between the ip and the netmask, i.e. "192.168.1.1/24" vs "192.168.1.1 /24". We can add processing to handle this, but it seems unnecessary.