Fixed compilation errors in LocationDB