Added is<state>() methods to check state of entity in a database