pgdb now consistently cats query file
Added db admin functions