This issue will add code to write data to the DB, since the current code uses mock data.
This issue will add code to write data to the DB, since the current code uses mock data.