Updated sql file and Added authentication on odata feature refs #316