Added sessions and mySQL