Remove mysql compatility

as it is deprecated from php 5.3