Fixed dbconsole command ignores profile.

`if [ "$1" != "" ];` was always true because of `shift` above.