Added a method to update state to database connector
Added new state in state packet