fixing sqlautocode and adding to repo. random db set up