Fix broken insert statements