disconnect on receiving EOT/^D on socket
start implementing commands/db access in listener