Connect the plan API to the DB

See: https://etherpad.openstack.org/p/solum-demystified

Change-Id: Ib4f851ac4415fe4537569b26cee3f5a1faae9b45