Reworked how the sockets are connected to the sockets
Minor changes
Merge pull request #3 from OptimusCrime/database-implmentation

Database implmentation