Updated mySQL to Session