fixed db diagram