fix logging and db resque issues