added -A to mysql; added comment about locking ZEP; code cleanup