changed query in DAO to SQL query