Enhance connection wrapper: logging, configuration, mariadb