Applied some R# suggestions
Properly named some variables
Renamed LQDatabase to LocalityQueryDatabase

Signed-off-by: Martin Evans <martindevans@gmail.com>