MariaDB: add callback parameter

Signed-off-by: swpd <swpdtz@gmail.com>
MariaDB: add api documentation

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