Update DatabaseInteractor.java

Realized that the connection was closed in places it shouldn't have been. So, now it doesn't do that.