Fix query dsns