Fix DB sync script

Broken by a60f6d45693c8a0d70f78a0fa9216a8c54c062e7, since we don't
import the db api into heat.db any more.

Change-Id: If5175ae84c9da0c8787a162a549b727381c6fbd6