Fixed typo.
Disabled db logging.
Added error.
Added brackets.