This should be bytea, not text. We could also return strings here instead of atoms unless you have a reason for it being atoms?