a few random tweeks and cleaning up of old comments
got PDO exception catching under control
error handling almost complete, would like it to email a log to an admin in future