Fixes with mysql