add error checks, set max idle conns, change []byte to sql.RawBytes