sql/php scripts update