DB access denied error logging fixed