MariaDB: make private data accessible through the life cycle of a query

Signed-off-by: swpd <swpdtz@gmail.com>