if no transact decorator is being used, we have to take care ourselves
of reconnect to the database if the active connection just times out,
added boolean parameter "ensure_connect" to store method on database to
make sure that we reconnect to the database in the case that we are not
connected already before return back a Storm store