Resolves a database specific query issue.