automatically convert sql strings to dicts holding information to be able to compare