Add a log in database to follow errors