fixed compiling db_state test