MariaDB: remove connection callbacks setup interfaces

Signed-off-by: swpd <swpdtz@gmail.com>
MariaDB: move disconnect stage handling to individual function

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