making db routers more robust

Signed-off-by: Kyle Rockman <kyle.rockman@mac.com>