Fix crashes

Fix local postgres database connection problem
Fix Deposits page crash

Signed-off-by: Paul Condran <paul@paulcondran.com>