log user actions in database