Initial setup and first implementation for pdo storage of secrets

maybe we can add this through composer instead of embedding the code?