Stabilized client.rb and server.rb

Moved database methods to class and self contained rb in lib\db_acces.rb