initial super ugly catastrophe code for db validation
initial super ugly catastrophe code for db validation