[func]add support for database encryption