add db dir to git
clean up some old code