Different database depending on option selection in a form.

Yes, you can do this with code.