implemented SELECT statement with WHERE clause