MariaDB: refactor source code structure

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