the get the status dirctorily via database; the api too slow