work work. started mysql functions.