updated schema for pm0 and added a list tables script