Fix model filtering in create_all