still trying to fix data modeling for postgres relations