Database deployment

SQL to clean (drop) and deploy (create) database tables, including
primary and foreign key relations.