We should only enable database when we are also able to set the path.  It's not guaranteed to work correctly if you enable the database, without setting a path.