(Bug 3994) : Changed interpolated variables to bound params in db query
(Bug 3994) : Corrected for best practice as per pull request comments

* Changed $dbr to $dbcr for cluster reader

* Changed interpolated variables to bound parameters in db query.