Found the issue. When the queries are being formatted, we only quote non-integer fields for the query. That ends up chopping off the leading 0 when added to MySQL. So, I've changed the do_placeholder_query() function so it will also quote an integer field if it begins with a 0 so that will preserve the data as it was entered.