migrated User model to PostgreSQL