DB api for teams

The db api added for Team model. This change is necessary for building
Teams REST API. It can be done even before the spec is approved.

Change-Id: I5d4a04a00578f555c9d901b0817df2c921abf8a3
Merge "DB api for teams"