ISPN-3365 Fix failing DatabaseStoredIndexTest by using a keepalive database connection instead of relying on timeouts

https://issues.jboss.org/browse/ISPN-3365