Migrate demand table to doctrine entity && refactor registration API