add locking around the Config update. So far untested
Merge branch 'mysql2PDO' of github.com:ZoneMinder/ZoneMinder into mysql2PDO
use parameter passing and remove extra escsaping