Activities now are connected with database