enabled database logging.

enabled database logging and works fine with basic configuration.