"Permission denied" error most likely occurs because of incorrect cron configuration. Check CHMOD for /opt/etc/cron.1min directory (execution must be allowed). Also check that php has necessary rights to run sh files.

As to DB error, I'll try to reproduce it and if I'll get the same result, I will fix the error in the next build of ADOS.