create upgrade script 2.2 -> 3.0 for PostgreSQL

I didn't add support for PostgreSQL to db_update_helper.py, so migration will not be automatic.

But this script should be good for manual execution.