Log process activity in db