more MySQL functions implemented