rejigged db connection trait loading