can javascripts be used to access database like php