Python script to generate and create content.db tables