Integrated Encryption Refactor With 'Database' Class