Fixes for the generate pagepart

Main changes are in the naming conventions of the generated files. I also added a question that asks for the table name prefix.