SQL fixes for insert to bom and locstock tables - ensure column counts match values even when zero