query records by user