Using mysqli

removed persistent connections
fixed user class bug