added js database read