debug, trying to fix mysql error