Python Sqlite Insert Into Table From Another Table