Changed blob handling for PostgreSQL