Connect the assembly API to the DB

Co-Authored-By: Angus Salkeld <angus.salkeld@rackspace.com>
Change-Id: Ic211a95617f5a76a00ef3ded9d6a956d2fe1d5e4