Starting migration to PDO. Migrated Database Upgrade functions (called by Cron)