replaced raw *sql.DB parameters with appropriate interfaces in the tools/ package

Created by  quietlight  on May 18, 2026
EBVWP6OGDMJZZOCALJU46LHFBF54MGNJADQ7ADJSZIQFNVPK7CFQC
Change contents