tunes quotations sql by using status instead of current_status in index