new code still with mysql