make work on old Ubunut and new MySQL