Configuring database models