Fixed typo + end loop before end of file
Add again (updated) local DBReader for debugging