Upgrading from 3.1.2 to 3.3 error 500

Your update steps should be:
First step: Update from 3.1.1.2 to 3.2.1-4.
Second step: Update from 3.2.1-4 to 3.3.0.8.

Note: Never forget to backup the current site!