Fix some compilation errors in LocationDB