begin rewriting gather_siteinfo to use sqlalchemy instead of oursql