Querying database information from powershell