database creation and added FKs