Generic api and classes, db api implementation.

Implemented generic data types and generic api.
Implemented database backend api to be in compliance with generic api.

Change-Id: Ifdbca79cb2f3b756cf779da13ec55c45ebfdbb7d
Dinky change to trigger jenkins so I can cleanup.

Change-Id: I5ff975bb5ded48a84341efa4ebfdae4bf430ab60
Fixed merge conflicts

Change-Id: I21e6e8cfcea481ce6591945e4236f216b044f830