Fix relative path in getDatabase

RFCR @owend 

The script was using relevant path, so it was producing incorrect result when run from a directory different from parent dir.

Thanks @garthwebb for pinpointing to this.