BUGFIX Making sure script and app use same DB's and add more exclude url

[ticket: #X]
MINOR Adding more exlcude condition
[ticket: #X]