db | encode | encrypt | write | read | decrypt | decode | db, works.