Openstack common db code