query returning one() is causing error when multiple records exist.  Changing to first() fixes this in createCore.py.