Remove some possible bugs that can occur

- avoid server to crash client sending names with 0 names on it;
- avoid server to crash client sending empty binaries;
- client should not be allow to specify 0 (or less) maximum connections
  on dblib.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>