update database connection socket added html templates