Added ability to detect if table has a field
Updated orm() method to use params as well as input