added logging for payout history to db. also logging now logs only info and error level, doesnt log debug.