js & db changes