Implement Database handling with check state information