[refactor] adding log for job insertions & making db actions synchronous

how this worked in mergeatron, I will never know.