Dynamic image batch in Photoshop

Okay, tell me if I’m crazy. Here’s what i want to try…

I want to take one Photoshop file, fill the background layer with a specific hex code (like #000000 for black), and save the file to a corresponding filename. I basically would be working off of 2 lists, the background color I want, and the filename I want. For example, if i have these 2 lists:

alabama #990000
michigan #00284F
purdue #000000
washington #330066

I want Photoshop to open the file “adtemplate.psd,” fill the background layer with #990000, and save the file as alabama_adtemplate.psd.

Does anyone even think this is possible? Any thoughts or advice would be awesome!