parses through log file and writes to database