Set up ActiveRecord logging

Signed-off-by: David Celis <me@davidcel.is>