Fix init-db shared database case