Expand tests for the simple_* database methods, additionally test against both PostgreSQL and SQLite variants.