States are now stored in database instead of Java enum.