Properly handle db ports, per #1402

Signed-off-by: Michael Eshom <oldiesmann@oldiesmann.us>