working progress with mysql support