added db foreign keys