updates for sql, erc, and functions to install packages