Console: added "gc" command to force a JVM GC
Fixed memory leak in queries introduced on fae55b4db61a17d0c4b5398351eb4f4ca426e28f
Fixed cleaning of cache when database is closed, not only when is recycled