Updated jsonifying db object

The sqlachemy object is now iterated over and put into the proper format for the dataTables.