diff --git a/FlashCards_Config/src/main/resources/default.properties b/FlashCards_Config/src/main/resources/default.properties
index 2b1b64e49..919643e65 100644
--- a/FlashCards_Config/src/main/resources/default.properties
+++ b/FlashCards_Config/src/main/resources/default.properties
@@ -1,7 +1,6 @@
#Profiles
repository.profile=spring-data
security.profile=security-http
-database.profile=embedded
tests.data.profile=test-data
# DataSource properties
diff --git a/FlashCards_Repository/FlashCards_Repository_Jpa_Commons/src/main/resources/META-INF/infrastructure.xml b/FlashCards_Repository/FlashCards_Repository_Jpa_Commons/src/main/resources/META-INF/infrastructure.xml
index 89c3a6e88..26b4941ab 100644
--- a/FlashCards_Repository/FlashCards_Repository_Jpa_Commons/src/main/resources/META-INF/infrastructure.xml
+++ b/FlashCards_Repository/FlashCards_Repository_Jpa_Commons/src/main/resources/META-INF/infrastructure.xml
@@ -13,78 +13,45 @@
-
-
-
-
-
- ${hibernate.connection.provider_class}
- ${hibernate.hikari.dataSourceClassName}
- ${hibernate.hikari.dataSource.url}
- ${hibernate.hikari.dataSource.user}
- ${hibernate.hikari.dataSource.password}
- ${hibernate.hikari.dataSource.cachePrepStmts}
- ${hibernate.hikari.dataSource.prepStmtCacheSize}
- ${hibernate.hikari.dataSource.prepStmtCacheSqlLimit}
- ${hibernate.hikari.maximumPoolSize}
- ${hibernate.hbm2ddl.auto}
- ${hibernate.show_sql}
- ${hibernate.format_sql}
- ${hibernate.jdbc.batch_size}
- ${hibernate.order_inserts}
- ${org.hibernate.flushMode}
- ${use_sql_comments}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+ ${hibernate.connection.provider_class}
+ ${hibernate.hikari.dataSourceClassName}
+ ${hibernate.hikari.dataSource.url}
+ ${hibernate.hikari.dataSource.user}
+ ${hibernate.hikari.dataSource.password}
+ ${hibernate.hikari.dataSource.cachePrepStmts}
+ ${hibernate.hikari.dataSource.prepStmtCacheSize}
+ ${hibernate.hikari.dataSource.prepStmtCacheSqlLimit}
+ ${hibernate.hikari.maximumPoolSize}
+ ${hibernate.hbm2ddl.auto}
+ ${hibernate.show_sql}
+ ${hibernate.format_sql}
+ ${hibernate.jdbc.batch_size}
+ ${hibernate.order_inserts}
+ ${org.hibernate.flushMode}
+ ${use_sql_comments}
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
-
- ${hibernate.hbm2ddl.auto}
- ${hibernate.show_sql}
- ${hibernate.format_sql}
- ${hibernate.jdbc.batch_size}
- ${hibernate.order_inserts}
- ${org.hibernate.flushMode}
- ${use_sql_comments}
-
-
-
-
+
+
+
+
+
+
+
diff --git a/FlashCards_Service/src/main/java/org/robbins/flashcards/akka/actor/BatchSavingCoordinator.java b/FlashCards_Service/src/main/java/org/robbins/flashcards/akka/actor/BatchSavingCoordinator.java
index 05115727b..24afce5bd 100644
--- a/FlashCards_Service/src/main/java/org/robbins/flashcards/akka/actor/BatchSavingCoordinator.java
+++ b/FlashCards_Service/src/main/java/org/robbins/flashcards/akka/actor/BatchSavingCoordinator.java
@@ -13,6 +13,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
+import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import com.google.common.collect.Lists;
@@ -24,6 +25,7 @@
import scala.PartialFunction;
import scala.runtime.BoxedUnit;
+@Scope("prototype")
@Component("batchSavingCoordinator")
public class BatchSavingCoordinator extends AbstractActor
{