Change current_query to query

Use new state field in pg_stat_activity