Added MySQL connection. Script now write speed information to local db