added support to many instances on one databaseinfra