created the parsing function and return the list of dbEntries