Working order ajax/controller/populates db