database model. relational loops in sql database design stack overflow database design sql relational database