cleaned up this file since it isn't meant to be a standalone script
work towards code that handles foreign keys