removed buggy mysql code