Per the discussion in #500, the first step towards having broad-based database support (to say nothing of more maintainable code) is to identify queries that use MySQL-specific syntax and begin transitioning them in a database-agnostic way.