Allowed for graceful fail for multiple DBs.
Fixed a bug in the header substitution. Also switched to spaces.