use constants for case status
move hqcase query to hqcase app