Remove DB name from SQL script

So it can be used on any DB user decides.
Fix missing variable symbol

Forgot the '$'