change stuff to work with mysql