To generate a Pokemon
Ctrl + N will take you to the database, then search for whatever you want, right click + view, and it will make it pop on the edit sidetab. There you can fine tune that pokemon you just generated. In this fine tuning you can fix OT Name and ID, meeting date, etc. Will save you A LOT of time, since it will already fill a lot of information which makes it pass all meeting conditions.
To bring back your SM pokemon to ruby
I'm not sure, but have you tried dumping your pokemon boxes, opening your ruby save, and loading those pokemon there? I don't recall if it is possible to turn a ,pk7 to .pk3, but it is worth giving it a shot.
Cheers