more formatting and MySQL updates