Interface from imap to smartRNS pgSQL database