Properly export database variables in driver script.