finished video 29 and 30 ,implementing openConnection and closeConnection
used new function call isset