MariaDB: accomplish most of the implementation

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