reorganize db test to seperate constraints
reorganize db test to seperate constraints
add foreign key constraints
small refactor of orm
update how we treate foreign/primary keys