Updated client-side socket parameters and other structural details to match the design of the database functions. Untested so far.