add these dependencies, apparently they are required for sftp upload
fix mysql_escape_string calls after referring to docs
Merge branch 'master' of github.com:ZoneMinder/ZoneMinder