Initial import of database API

Change-Id: I59812b8f0bb692104ced5a6a60c1066b804bcdd8
Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>