changed DatabaseExtensions to explicityly enrol the sqlcommand into the transaction