started to move generator code out of the dbconnector to the generator