added mysql function and config file for mysql