[fix] fixes to work with mysql