Add check internet connect function
Add sessions to sql script