added disconnect from database