split server start and handler. implements create, update, remove function