classes and query update

updated the team / player abstract classes
created db class
sql queries