Add extern declaration of mysql function