Write to Database

Change-Id: Ia8962bbd4c661fd9e79ae4778d6fb7c99eaecda3