add db_status ugly method
add db_status test case.