Use conn.cfg.php, tag on error, other misc changes