Added Haar algorithm, pushes results to mysql server