Adding method to deactivate database logging