# Working on different databases in mongoDB

**URL:** <https://forum.liquibase.org/t/working-on-different-databases-in-mongodb/5768>\
**Category:** General Discussion\
**Created:** [August 3, 2021, 7:07am UTC](https://forum.liquibase.org/t/working-on-different-databases-in-mongodb/5768 "2021-08-03T07:07:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![talha](https://avatars.discourse-cdn.com/v4/letter/t/a5b964/32.png) [@talha](https://forum.liquibase.org/u/talha)\
**Post date:** [August 3, 2021, 7:07am UTC](https://forum.liquibase.org/t/working-on-different-databases-in-mongodb/5768/1 "2021-08-03T07:07:06Z")

</div>

Hello,

I have two questions about Liquibase with MongoDB. Appreciate your answers in advance.

1- In our system, there are applications and every application has their own database. As I see in the README of liquibase-mongodb extension, we need to provide database in liquibase property file. But because I have different databases for each application, I couldn’t provide the database name. How can I achieve this?

2- I know eval command is deprecated starting from MongoDB 4.2 and liquibase-mongodb extension doesn’t support this command. But we can use some commands like createCollection, dropCollection etc. What I ask is we have JS files and we use MongoDB [load()](https://docs.mongodb.com/manual/reference/method/load/) function to execute this scripts during deployment. Can we achieve this in liquibase?

Many thanks,

---

<div class="post-metadata">

**Author:** ![aditi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.liquibase.org/aditi/32/356_2.png) [@aditi](https://forum.liquibase.org/u/aditi)\
**Post date:** [August 12, 2021, 5:52pm UTC](https://forum.liquibase.org/t/working-on-different-databases-in-mongodb/5768/2 "2021-08-12T17:52:56Z")

</div>

Hi @talha ,

I can answer one of your question.  
For question 1, I believe one properties file can have only one database at a time. I would suggest you to have a separate folder for different database and have their own liquibase properties file. For example:

ApplicationOne/DBOne/liquibase.properties  
ApplicationTwo/DBTwo/liquibase.properties
