changed min value of pg_statement.max to 100, changed position of query_id in view, removed unnecessary refactoring