Refactor sql driver api
Refactor sql driver api

sqlalchemy api implementing is too complex, the patch
try to simpfy it

Change-Id: I6ac3190bd44f39b20a7196699c4532fc3bcc823b

openstack/freezer-api,openstack/freezer-api,openstack/freezer-api,openstack/freezer-api