@query = query()

There is no need to assign a variable to the query, unless you are retreiving information from the DB.

Also, the return() procedure is not needed, unless the procedure returns information to whatever ran it.