[SR-Dev] git:janakj/mysql: - port from opensips r4526, credits goes to bogdan