Updated DB,Validation And Socket Programmin

DB - Changes To Functions To Support Socket Prog Completely
Validation - Improved Validation And Fixed All Bugs From Prev Version
Socket Programmin - Fixed Bugs And Improved Efficiency