Fixed some bugs in dbManager causing repeated article printing