Completed CRUD functionality

Added in necessary code to enable complete CRUD functionality.  It's
ugly as hell…but it works.  Form before function right??  right??!