Add project state to db and manage projects page