Extracted parameter type for db queries to fix boolean type problems.