add postgresql dep
Use secure memory to store sensible information
Check SSL certificates
Attempt to fix DOS with infinite loop

    An infinite loop occured when the underlying socket has been closed
    and SSL_read() returns 0 bytes read