Fix Log table migrations
Add Log helper