Added encryption for database