fix: use $database_connection_real

deprecation of $sql_connection introduced
$database_connection_real which should be
used instead of using $database_connection
directly.

Change-Id: Ic630d346c0bca8f8fb07cf1263d5e345423316e3