updates for mysql model