Refactoring: Separate SQL statement from DAO class