console logging db