parses logs - sends them to mysql database.