Add db create API and remove db create logic from .spec file