Minor Updates to connection settings

Added keepalives and error handling for invalid db password