add userId and timestamp field in DB