send hostname, refactor
Handle unavailable locate command
Refactor
Added PostgreSQL support