changes for javascript db