add db; js changes