fix mysql stuff