changed mysql stuff to classes but kept old files just in case