Build a form from a mongodb table