renamed mysqli object to not colide with another lib that uses same name
cleaned up session array