added sessions in db and js