Edited error count code for DB for the umpteenth time