add logging for sql
use command line arg for cofings