Handle requests for different types of databases

The quoted_true and quoted_false is necessary for the support of different databases, as different databases have other values for true and false.