create/update from mysql

new, untested script to create or update a page based on a mysql query