script to create characters tables