Unbreak mysql 5.1. Introduce mediators for mysql links.