updated database and js