update plot script for MySQL