I recommend to explore rdbms built-in datetime types and functions. Perhaps you will find something like as StrToDateTime(pattern, string), which will allow to do something like as
INSERT INTO mytable (mytimestamp)
VALUES (StrToDateTime("%month %day %h24:%mi:%ss.%xxx",?));
Attention: Pattern used in insert is not real.
Or, you can reformat the timestamp in Perl code (as advised above) into rdbms native string format of timestamp - some rdbms automatically convert properly formatted string to timestamp.
But, in both cases, your code will depend on rdbms capabilities.