Update DatabaseManagerAgent.java

Little refactor;