now it can work properly with mysql as postgresql