Database connection to return the read PDO connection if in transaction
Merge pull request #3272 from shezarkhani/4.1

#3270 Database connection to return the read PDO connection if in transaction