Refactoring SQL query.
Rename method.