Add support for created_before queries