Crypto Key Store with database in, tests pass