Added autoreset to prepared statements