core: set default schema for sites without dbschema config.

(cherry picked from commit 3afa32165194c2da9f200c88fbde1365c015ca7f)