Executing command line script for different environment (database)