initializing kwargs earlier to prevent error at kwargs['primary_key'] = True