Adding database migrations for PostgreSQL back to 1.1