update with mysql stuff