Abstractions for SQL and post objects