Something like the App Engine Datastore interface for PostgreSQL.