added global $DB
updated default cron run times
fixed database structure in upgrade and install