Database build updates

Trying to get a plink compatible database build setup