DB connector host now local by default
DB connector more robust

Better error handling, more guards on arguments.