MariaDB: add pool support to dthread db connection

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