- SQL query updated