Add more log to show database error.