Fixed some errors in the database relationships, adjusted some foreign keys so they restrict on delete instead of cascade, and made dataset have an integer instead of biginter primary key.