Fixed bug on SQL apps xml config file (groups)

Signed-off-by: pgnunes <pgh.nunes@gmail.com>
Bugfix writting app data file on each iteration

Signed-off-by: pgnunes <pgh.nunes@gmail.com>
Bugfix refreshing index file (resource may be in use)

Signed-off-by: pgnunes <pgh.nunes@gmail.com>
Added DB maintenance operations on startup if needed.

Signed-off-by: pgnunes <pgh.nunes@gmail.com>
Changed Java Xmx to 256MB
Removed some debug info

Signed-off-by: pgnunes <pgh.nunes@gmail.com>
Control the index update thread (do not launch a new one if it's already
running)

Signed-off-by: pgnunes <pgh.nunes@gmail.com>