in reply to Win32: sed -Perl

You could also do this:
while (<>){ s/oh/Ohio/g; print; }
Your example code wasn't producing any output so there was nothing to add to the states.db file.