refs: move query row into meta and make test.db.