database: Switch from PostgreSQL to memory.