use connections config in aggregate and compound queries
update lifecycle callback tests to use connections config