Removed sql code from FBA, GDBB, ....

and factory classes.